<?php
class Cms_SoldDealController extends My_Controller_Action
{
	public function init() {

        parent::init();
    }
    
    public function indexAction()
    {
    	$this->view->rightModules('right');
    	
    	Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
    	
        $model = $this->loadModel("cms", "CmsDeal");
        $this->view->filter = $this->_request->getParam('filter', "");
        $this->view->paginator = $model->getAllSoldDeals($this->_getParam('page', 1), $this->view->filter);
    }
}
?>